﻿using Windows.SeedWork;

namespace Windows.Admin.Domain
{
    public class Post: FullEntity<long>
    {
        public Post() 
        {
            Post_Employees = new HashSet<Post_Employee>();
            Role_Posts = new HashSet<Role_Post>();
        }
        /// <summary>
        /// 岗位级别字符串
        /// </summary>
        public string? Level { get; set; }
        public long? PId { get; set; }
        /// <summary>
        /// 岗位编码
        /// </summary>
        public string Code { get; set; } = "";
        /// <summary>
        /// 岗位名称
        /// </summary>
        public string Name { get; set; } = "";
        /// <summary>
        /// 排序
        /// </summary>
        public int? Sort { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
        public long OrganizationId { get; set; }
        public long PostLevelId { get; set; }
        public virtual Organization? Organization { get; set; }
        public virtual PostLevel? PostLevel { get; set; }
        public virtual ICollection<Post_Employee> Post_Employees { get; set; }
        public virtual ICollection<Role_Post> Role_Posts { get; set; }
    }
}
